const express = require('express');
const routerhome = require('./routs/RouterHome');

const routeradmin = require('./routs/AdminRouter');
const app = express();

app.use(routerhome);
app.use(routeradmin);

//创建一个路由中间件

app.all('*' ,(req, res) => {
    res.send('<h1>404 Not Found</h1>');
});

app.listen(3000,() => {
    console.log('服务已启动 3000端口正在监听....');
});